package com.stu.manager.studentscoremanagersys.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName student
 */
public class Student implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 
     */
    private String no;

    /**
     * 
     */
    private String realName;

    /**
     * 
     */
    private Date enrollTime;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getNo() {
        return no;
    }

    /**
     * 
     */
    public void setNo(String no) {
        this.no = no;
    }

    /**
     * 
     */
    public String getRealName() {
        return realName;
    }

    /**
     * 
     */
    public void setRealName(String realName) {
        this.realName = realName;
    }

    /**
     * 
     */
    public Date getEnrollTime() {
        return enrollTime;
    }

    /**
     * 
     */
    public void setEnrollTime(Date enrollTime) {
        this.enrollTime = enrollTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Student other = (Student) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getNo() == null ? other.getNo() == null : this.getNo().equals(other.getNo()))
            && (this.getRealName() == null ? other.getRealName() == null : this.getRealName().equals(other.getRealName()))
            && (this.getEnrollTime() == null ? other.getEnrollTime() == null : this.getEnrollTime().equals(other.getEnrollTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getNo() == null) ? 0 : getNo().hashCode());
        result = prime * result + ((getRealName() == null) ? 0 : getRealName().hashCode());
        result = prime * result + ((getEnrollTime() == null) ? 0 : getEnrollTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", no=").append(no);
        sb.append(", realName=").append(realName);
        sb.append(", enrollTime=").append(enrollTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}